package com.hhang.boot.service;

import com.github.pagehelper.PageInfo;
import com.hhang.boot.exception.ServiceException;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface HouseService {
    PageInfo<Map<String,Object>> findHouse(Map<String,Object> param) throws ServiceException;
    int addHouse(Map<String,Object> param) throws ServiceException;
    int upHouse(Map<String, Object> param) throws ServiceException;
    int delHouse(List<Long> ids) throws ServiceException;

    PageInfo<Map<String,Object>> findBranch(Map<String,Object> param) throws ServiceException;
    int delBranch(List<Long> ids) throws ServiceException;
    int addBranch(Map<String,Object> param) throws ServiceException;

    int add(Map<String,Object> param) throws ServiceException;

    int del(List<Long> id) throws ServiceException;
    int update(Map<String, Object> param) throws ServiceException;

    //公告查询部分

    PageInfo<Map<String,Object>> findPrice(Map<String,Object> notes) throws ServiceException;

    List<Map<String,Object>> find7days(Map<String,Object> notes) throws ServiceException;
}
